home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-10-12 | 911 b | 28 lines | [TEXT/ToyS] |
- --- PageSentry Notification Applet
- --- DisplayDialog
-
- on «event SENTfail» sentryName given «class FURL»:failedURL, «class XTRA»:extra, «class STAT»:Status
-
- -- Create a string containing all the information we recieved
- set myText to "Received Sentry Event" & return & return & ¬
- "SentryName: " & sentryName & return & ¬
- "Failed URL: " & failedURL & return & ¬
- "Extra: " & extra & return & ¬
- "Status: " & Status
-
- -- Get the length of the string we just created
- set myLength to length of myText
-
- -- If the length is greater than 255 charactures, cut of the status line
- if myLength > 255 then
- set myText to "Received Sentry Event" & return & return & ¬
- "SentryName: " & sentryName & return & ¬
- "Failed URL: " & failedURL & return & ¬
- "Extra: " & extra & return & ¬
- "Status: Too much data to fit in window"
- end if
-
- -- Display the dialog
- display dialog myText
-
- end «event SENTfail»